<!--{template @admin/header}--> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="9"><b>专题管理</b></td> </tr>
{if !empty($topic_list)}
<tr> <td colspan="5"> <div class="tr_select">请选择城市：
<select name="city_id" class="isearcher_select_list" onchange="window.location.href='?mod=tttuangou&code=topic&city_id='+this.value">
 <option value="false" {if $city_id=='false'}selected{/if}>不限城市</option>
{loop $city $i $value}
<option value="{$value['cityid']}" {if $city_id==$value['cityid']}selected{/if}>{$value['cityname']}</option>
{/loop}
</select></div> </td> </tr>
{/if}
<tr class="tr_nav"> <td width="20%">专题名称</td> 
<td width="8%">开始时间/结束时间</td> <td width="10%">所属城市</td> <td width="8%">排序</td> <td width="8%">是否显示</td>  <td width="10%" align="center">管理</td> </tr> <!--{if empty($topic_list)}--> <tr>
  <td colspan="9">暂时还没有专题，请<a href="?mod=tttuangou&code=addtopic">点此添加专题</a>。</td></tr> 
  <!--{else}-->
  <!--{loop $topic_list $i $value}--> 
  <tr onmouseover="this.className='tr_hover'" onmouseout="this.className='tr_normal'"> 
  <td>{$value['title']}</td> 
  <td>{echo date('Y-m-d H:i:s', $value['start_time'])}/<br/>{echo date('Y-m-d H:i:s', $value['end_time'])}</td> 
  <td>{$newcity[$value[city_id]]}</td> 
  <td>{$value['sort']}</td>
  <td><!--{if $value['display']==1}-->显示 <!--{else}-->隐藏<!--{/if}--></td>    
  <td align="center"><a href="?mod=tttuangou&code=edittopic&id={$value['topic_id']}&city_id={$city_id}&page={$page}">修改</a> - 
  <!--{if $value['display']==1}--> 
  <a href="#" title="点此隐藏该专题" onclick="if(confirm('您确认要隐藏专题吗？')){window.location.href='?mod=tttuangou&code=hidetopic&id={$value['topic_id']}&city_id={$city_id}&page={$page}'}">隐藏</a> 
  <!--{else}-->
   <a href="#" title="点此显示该专题" onclick="if(confirm('您确认要显示专题吗？')){window.location.href='?mod=tttuangou&code=showtopic&id={$value['topic_id']}&city_id={$city_id}&page={$page}'}">显示</a>
  <!--{/if}-->
   - <a href="#" title="点此删除该专题" onclick="if(confirm('您确认要删除专题吗？')){window.location.href='?mod=tttuangou&code=deltopic&id={$value['topic_id']}&city_id={$city_id}&page={$page}'}">删除</a></td> 
  </tr> 
  <!--{/loop}--> 
  <tr>
  <td colspan="9">请注意：</td>
  </tr> 
  </table> 
  <a href="?mod=tttuangou&code=addtopic" class="back1 back2">添加专题</a> 
  <br> 
  <center>
{$page_arr}
</center> 
<!--{/if}--> 
{template @admin/footer}